/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.acq.entity.dxdan;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 订销单Entity
 * @author lj
 * @version 2018-05-04
 */
public class AcqDxdan extends DataEntity<AcqDxdan> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 订销(0:订，1:销)
	private String farmerId;		// 订销单所属农户
	private String companyName;		// 企业名称
	private String companyArea;//企业行政区域
	private String companyAreaName;//企业行政取余名
	private String price;		// 收购价格
	private String count;		// 收购量
	private Date createDate; //创建时间
	private String des;//产品描述
	private Date dxDate;
	private String buyName;
	private String buyContact;
	private String farmerName;
	private String acqPlantName;
	private String acqBreedName;
	
	
	public String getAcqPlantName() {
		return acqPlantName;
	}

	public void setAcqPlantName(String acqPlantName) {
		this.acqPlantName = acqPlantName;
	}

	public String getAcqBreedName() {
		return acqBreedName;
	}

	public void setAcqBreedName(String acqBreedName) {
		this.acqBreedName = acqBreedName;
	}

	public String getFarmerName() {
		return farmerName;
	}

	public void setFarmerName(String farmerName) {
		this.farmerName = farmerName;
	}

	public String getBuyName() {
		return buyName;
	}

	public void setBuyName(String buyName) {
		this.buyName = buyName;
	}

	public String getBuyContact() {
		return buyContact;
	}

	public void setBuyContact(String buyContact) {
		this.buyContact = buyContact;
	}

	public String getCompanyAreaName() {
		return companyAreaName;
	}

	public void setCompanyAreaName(String companyAreaName) {
		this.companyAreaName = companyAreaName;
	}

	public Date getDxDate() {
		return dxDate;
	}

	public void setDxDate(Date dxDate) {
		this.dxDate = dxDate;
	}

	public String getCompanyArea() {
		return companyArea;
	}

	public void setCompanyArea(String companyArea) {
		this.companyArea = companyArea;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public AcqDxdan() {
		super();
	}

	public AcqDxdan(String id){
		super(id);
	}

	@Length(min=0, max=4, message="订销(0:订，1:销)长度必须介于 0 和 4 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="订销单所属农户长度必须介于 0 和 64 之间")
	public String getFarmerId() {
		return farmerId;
	}

	public void setFarmerId(String farmerId) {
		this.farmerId = farmerId;
	}
	
	@Length(min=0, max=128, message="企业名称长度必须介于 0 和 128 之间")
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Length(min=0, max=128, message="收购价格长度必须介于 0 和 128 之间")
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=0, max=128, message="收购量长度必须介于 0 和 128 之间")
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
}